package pe.com.bn.sach.domain;

/**
 * Bnchf23ExpDetFamAdicId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf23ExpDetFamAdicId implements java.io.Serializable {

	// Fields

	private Bnchf23ExpIngrFamAdic bnchf23ExpIngrFamAdic;
	private Long f23IdDetalle;

	// Constructors

	/** default constructor */
	public Bnchf23ExpDetFamAdicId() {
		
		bnchf23ExpIngrFamAdic=new Bnchf23ExpIngrFamAdic ();
	}

	/** full constructor */
	public Bnchf23ExpDetFamAdicId(Bnchf23ExpIngrFamAdic bnchf23ExpIngrFamAdic,
			Long f23IdDetalle) {
		this.bnchf23ExpIngrFamAdic = bnchf23ExpIngrFamAdic;
		this.f23IdDetalle = f23IdDetalle;
	}

	// Property accessors

	public Bnchf23ExpIngrFamAdic getBnchf23ExpIngrFamAdic() {
		return this.bnchf23ExpIngrFamAdic;
	}

	public void setBnchf23ExpIngrFamAdic(
			Bnchf23ExpIngrFamAdic bnchf23ExpIngrFamAdic) {
		this.bnchf23ExpIngrFamAdic = bnchf23ExpIngrFamAdic;
	}

	public Long getF23IdDetalle() {
		return this.f23IdDetalle;
	}

	public void setF23IdDetalle(Long f23IdDetalle) {
		this.f23IdDetalle = f23IdDetalle;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf23ExpDetFamAdicId))
			return false;
		Bnchf23ExpDetFamAdicId castOther = (Bnchf23ExpDetFamAdicId) other;

		return ((this.getBnchf23ExpIngrFamAdic() == castOther
				.getBnchf23ExpIngrFamAdic()) || (this
				.getBnchf23ExpIngrFamAdic() != null
				&& castOther.getBnchf23ExpIngrFamAdic() != null && this
				.getBnchf23ExpIngrFamAdic().equals(
						castOther.getBnchf23ExpIngrFamAdic())))
				&& ((this.getF23IdDetalle() == castOther.getF23IdDetalle()) || (this
						.getF23IdDetalle() != null
						&& castOther.getF23IdDetalle() != null && this
						.getF23IdDetalle().equals(castOther.getF23IdDetalle())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf23ExpIngrFamAdic() == null ? 0 : this
						.getBnchf23ExpIngrFamAdic().hashCode());
		result = 37
				* result
				+ (getF23IdDetalle() == null ? 0 : this.getF23IdDetalle()
						.hashCode());
		return result;
	}

}